<?php
namespace app\index\model;
use think\Model;
use think\Db;
use think\Cache;

class KnowUserType extends Model
{
	public function getUserData($typeId, $column = 'column', $field = '')
	{
		$user = user();

		return self::where('user_id', $user['id'])
						->where('know_user_type.type_id', $typeId)
						->where('status', 1)
						->where('is_show', 1)
						->join('type', 'type.type_id=know_user_type.type_id')
						->{$column}($field);
	}
}